package text
{
	import flash.text.TextFormat;
	
	import mx.controls.RichTextEditor;
	import mx.core.IUITextField;

	public class MyRich extends RichTextEditor
	{
		var myTextArea:MyTextArea = new MyTextArea();
		var myTF:IUITextField;
		var f1:TextFormat;
		var f2:TextFormat;
		var f3:TextFormat;
		
		
		public function MyRich()
		{
			super();			
			mySetUp();
			
		}
		
		public function mySetUp():void{
			this.textArea = myTextArea;
			myTF = (MyTextArea)(textArea).getTextField();
			f1 = new TextFormat();
			f1.color = 255;
			f1.bold = true;	
		}
		
		public function setColor_s(b:int, e:int):void{
			myTF.setTextFormat(f1,b,e);
		}
		
		
	}
}